<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>	
	<h3>Nova Resposta</h3>
			
	<spring:url var="url" value="/questionarios/${pergunta.questionario.id}/perguntas/${pergunta.id}/respostas/nova" />
	<form:form action="${url}" method="post" modelAttribute="resposta">
		<input id="pergunta" name="pergunta.id" type="hidden" value="${pergunta.id}" />
		<table>
			<tr>				
				<td><label for="resposta">Resposta: </label></td>
				<td><input id="resposta" name="descricao" type="text" /></td>
			</tr>
			<tr>				
				<td align="right" colspan="2">
					<input type="button" value="Voltar" onclick="window.location = '<spring:url value="/questionarios/${pergunta.questionario.id}/editar" />';" />
					<input type="submit" value="Cadastrar" />
				</td>
			</tr>			
		</table>
	</form:form>
	
</body>
</html>